package odgs.manager.filedb;

import java.io.Serializable;

import odgs.Contents;

public class FileDBContents implements Serializable
{
	private int uid;
	private String name;
	private String path;
	private String owner;
	private String type;
	private long size;
	private int permission;

	public FileDBContents(int uid, String name, String type, String path, String owner, long size, int permission)
	{
		this.uid = uid;
		this.name = name;
		this.type = type;
		this.path = path;
		this.owner = owner;
		this.size = size;
		this.permission = permission;
	}

	public boolean equals(Object o)
	{
		FileDBContents con = (FileDBContents) o;
		if(con.getUid() == uid)
			return true;
		return false;
	}

	
	public String getName()
	{
		return name;
	}
	
	public void setName(String name)
	{
		this.name = name;
	}
	
	public String getOwner()
	{
		return owner;
	}

	public void setOwner(String owner)
	{
		this.owner = owner;
	}

	public String getPath()
	{
		return path;
	}

	public void setPath(String path)
	{
		this.path = path;
	}

	public int getPermission()
	{
		return permission;
	}

	public void setPermission(int permission)
	{
		this.permission = permission;
	}

	public long getSize()
	{
		return size;
	}

	public void setSize(long size)
	{
		this.size = size;
	}

	public String getType()
	{
		return type;
	}

	public void setType(String type)
	{
		this.type = type;
	}

	public int getUid()
	{
		return uid;
	}

	public void setUid(int uid)
	{
		this.uid = uid;
	}

	public Contents getContents()
	{
		return new Contents(uid, name, type, path, owner, size, permission);
	}
}